import java.util.Scanner;
public class text3 {
    public static void main(String[] args) {
        System.out.println("请输入你的卡号(4位数字；)");
        Scanner sc=new Scanner(System.in);
        int a= sc.nextInt();
        int b1=a%10;
        System.out.println("你卡号的个位数是："+b1);
        int b2=a/10%10;
        System.out.println("你卡号的十位数是："+b2);
        int b3=a/10/10%10;
        System.out.println("你卡号的百位数是："+b3);
        int b4=a/1000;
        System.out.println("你卡号的千位数是："+b4);
        int max=b1+b2+b3+b4;
        System.out.println("你的所有卡号之数的和："+max);
        if (max%8==0){
            boolean arr=true;
            System.out.println("您是否中奖"+arr);
        }else {
            boolean arr=false;
            System.out.println("您是否中奖"+arr);
        }
        int c1= sc.nextInt();
        int c2= sc.nextInt();
        int c3= sc.nextInt();
        int c=c1+c2+c3;
        System.out.println("三个数的和"+c);
        System.out.println("三个数的平均值"+c/3);
        int ax=2000,ay=10000;
        System.out.println(ax+(ay*0.03));
        int d1= sc.nextInt();
        int d2= sc.nextInt();
        int d3= sc.nextInt();
        if (d1*d1+d2*d2==d3*d3){
            System.out.println("是直接三角形");
        }else{
            System.out.println("不是直接三角形");
        }


    }
}
